.class Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$1;
.super Lcom/sponsorpay/sdk/android/publisher/ActivityOfferWebClient;
.source "OfferWallActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;


# direct methods
.method constructor <init>(Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;Landroid/app/Activity;Z)V
    .locals 0
    .parameter
    .parameter "$anonymous0"
    .parameter "$anonymous1"

    .prologue
    .line 1
    iput-object p1, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$1;->this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;

    .line 131
    invoke-direct {p0, p2, p3}, Lcom/sponsorpay/sdk/android/publisher/ActivityOfferWebClient;-><init>(Landroid/app/Activity;Z)V

    return-void
.end method


# virtual methods
.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 6
    .parameter "view"
    .parameter "errorCode"
    .parameter "description"
    .parameter "failingUrl"

    .prologue
    .line 137
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    .line 138
    const-string v2, "OfferWall WebView triggered an error. Error code: %d, error description: %s. Failing URL: %s"

    const/4 v3, 0x3

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    .line 140
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x1

    aput-object p3, v3, v4

    const/4 v4, 0x2

    aput-object p4, v3, v4

    .line 137
    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/sponsorpay/sdk/android/utils/SponsorPayLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 144
    sparse-switch p2, :sswitch_data_0

    .line 150
    sget-object v0, Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;->ERROR_LOADING_OFFERWALL:Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;

    .line 153
    .local v0, error:Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;
    :goto_0
    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$1;->this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;

    invoke-virtual {v1, v0}, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;->showErrorDialog(Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;)V

    .line 154
    return-void

    .line 147
    .end local v0           #error:Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;
    :sswitch_0
    sget-object v0, Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;->ERROR_LOADING_OFFERWALL_NO_INTERNET_CONNECTION:Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;

    .line 148
    .restart local v0       #error:Lcom/sponsorpay/sdk/android/publisher/SponsorPayPublisher$UIStringIdentifier;
    goto :goto_0

    .line 144
    nop

    :sswitch_data_0
    .sparse-switch
        -0x7 -> :sswitch_0
        -0x2 -> :sswitch_0
    .end sparse-switch
.end method
